package com.pet.server.po;

import static javax.persistence.GenerationType.IDENTITY;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PetSay entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "pet_say")
public class PetSay implements java.io.Serializable {

	// Fields

	private Integer id;
	private String petCate;
	private String title;
	private String source;
	private String type;
	private Date createTime;
	private String state;

	// Constructors

	/** default constructor */
	public PetSay() {
	}

	/** minimal constructor */
	public PetSay(Date createTime) {
		this.createTime = createTime;
	}

	/** full constructor */
	public PetSay(String petCate, String title, String source, String type,
			Date createTime, String state) {
		this.petCate = petCate;
		this.title = title;
		this.source = source;
		this.type = type;
		this.createTime = createTime;
		this.state = state;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "pet_cate", length = 32)
	public String getPetCate() {
		return this.petCate;
	}

	public void setPetCate(String petCate) {
		this.petCate = petCate;
	}

	@Column(name = "title", length = 32)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "source", length = 128)
	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	@Column(name = "type", length = 32)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "create_time", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "state", length = 1)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

}